package com.chatbi.service.vectorstore;

import dev.langchain4j.data.segment.TextSegment;
import dev.langchain4j.store.embedding.EmbeddingMatch;

import java.util.List;

public interface VectorStore {
    void store(String type, String content);

    default List<EmbeddingMatch<TextSegment>> loadEmbeddings(String type, String content, int batchSize) {
        return loadEmbeddings(type, content, batchSize, 0.8d);
    }
    List<EmbeddingMatch<TextSegment>> loadEmbeddings(String type, String content, int batchSize, double minScore);
}
